package com.iye.puretennis.activity.test;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.iye.puretennis.R;

/**
 * Created with IntelliJ IDEA.
 * User: jing wu
 * Date: 2014/11/20
 * Time: 11:38
 */
public class CustomerDialogActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.customerdialogshow);
        Button button = (Button) findViewById(R.id.customer_dialog_btn);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                //初始化一个自定义的Dialog
                Dialog dialog = new CustomerDialog(CustomerDialogActivity.this,
                        R.style.CustomerDialog);

                dialog.show();
            }
        });

    }
}
